gold.lang.require('gold.logger.ConsoleLogger');

gold.TestRunner.add('ConsoleLogger Test', {
	testLogDebug: function() {
		var message = '';
		var logger = new gold.logger.ConsoleLogger({'debug': function(m) { message = m; }});
		logger.debug('ohai');
		this.assert(message).equals('ohai');
	},
	testLogInfo: function() {
		var message = '';
		var logger = new gold.logger.ConsoleLogger({'info': function(m) { message = m; }});
		logger.info('ohai');
		this.assert(message).equals('ohai');
	},
	testLogWarn: function() {
		var message = '';
		var logger = new gold.logger.ConsoleLogger({'warn': function(m) { message = m; }});
		logger.warn('ohai');
		this.assert(message).equals('ohai');
	},
	testLogError: function() {
		var message = '';
		var logger = new gold.logger.ConsoleLogger({'error': function(m) { message = m; }});
		logger.error('ohai');
		this.assert(message).equals('ohai');
	}
});